﻿using BCCommon;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.Order.OrderProcess
{
    /// <summary>
    /// 订单回单请求
    /// </summary>
    public class OrderReceiptPhotoRequestDto : OrderProcessExtentionBaseRequestDto
    {
        /// <summary>
        /// 回单拍照
        /// </summary>
        [Display(Name = "回单拍照")]
        [Required(ErrorMessage = "请上传 {0}")]
        [StringLength(1000, ErrorMessage = "{0} 长度应小于1000字符")]
        [RegularExpression(RegexPatterns.PHOTO_ADDRESS, ErrorMessage = "{0} 不是有效的图片地址")]
        public string ReceiptPhoto { get; set; }
    }
}
